home *** CD-ROM | disk | FTP | other *** search
/ PC User 2002 August / Disc 1 / PCU0802CD1.iso / software / apps / files / anfxw32.exe / #setuppath# / c03.class (.txt) < prev    next >
Encoding:
Java Class File  |  2002-06-23  |  11.1 KB  |  756 lines

  1. import java.applet.AudioClip;
  2. import java.awt.Color;
  3. import java.awt.Dimension;
  4. import java.awt.Event;
  5. import java.awt.Font;
  6. import java.awt.FontMetrics;
  7. import java.awt.Graphics;
  8. import java.awt.Image;
  9. import java.awt.MediaTracker;
  10. import java.awt.Rectangle;
  11. import java.awt.Toolkit;
  12. import java.io.BufferedInputStream;
  13. import java.io.FilterInputStream;
  14. import java.io.IOException;
  15. import java.io.InputStream;
  16. import java.net.URL;
  17. import java.net.URLConnection;
  18. import java.util.Vector;
  19.  
  20. public class c03 implements Runnable, AppletService {
  21.    // $FF: renamed from: IQ boolean
  22.    protected boolean field_0 = false;
  23.    // $FF: renamed from: LK boolean
  24.    protected boolean field_1 = false;
  25.    // $FF: renamed from: Kp c00
  26.    protected c00 field_2;
  27.    // $FF: renamed from: Jn java.lang.Thread
  28.    protected Thread field_3;
  29.    // $FF: renamed from: KS java.awt.Font
  30.    protected Font field_4 = new Font("Helvetica", 0, 14);
  31.    // $FF: renamed from: MV java.awt.Image
  32.    private Image field_5;
  33.    // $FF: renamed from: LL c00[]
  34.    protected c00[] field_6;
  35.    // $FF: renamed from: FE java.awt.Graphics
  36.    private Graphics field_7;
  37.    // $FF: renamed from: Ka int
  38.    public int field_8;
  39.    // $FF: renamed from: LO int
  40.    int field_9 = 125;
  41.    // $FF: renamed from: GN int
  42.    public int field_10;
  43.    // $FF: renamed from: LI int
  44.    protected int field_11;
  45.    // $FF: renamed from: GD java.lang.String
  46.    protected String field_12;
  47.    // $FF: renamed from: Jr short
  48.    protected short field_13 = 1;
  49.    // $FF: renamed from: JX int
  50.    protected int field_14;
  51.    // $FF: renamed from: FN int
  52.    protected int field_15 = 30000;
  53.    // $FF: renamed from: Gw boolean
  54.    private boolean field_16 = false;
  55.    // $FF: renamed from: IE int
  56.    public int field_17;
  57.    // $FF: renamed from: Jp int
  58.    public int field_18;
  59.    // $FF: renamed from: JH int
  60.    protected int field_19;
  61.    // $FF: renamed from: Mo java.lang.String[]
  62.    protected String[] field_20;
  63.    // $FF: renamed from: MS int
  64.    public int field_21;
  65.    // $FF: renamed from: Fs int
  66.    public int field_22;
  67.    // $FF: renamed from: Gs int
  68.    public int field_23;
  69.    // $FF: renamed from: IZ java.awt.MediaTracker
  70.    protected MediaTracker field_24;
  71.    // $FF: renamed from: FV short
  72.    protected short field_25;
  73.    // $FF: renamed from: Mg java.lang.String
  74.    public static String field_26;
  75.    // $FF: renamed from: MI long
  76.    protected long field_27;
  77.    // $FF: renamed from: HO long
  78.    protected long field_28;
  79.    // $FF: renamed from: Id long
  80.    protected long field_29;
  81.    // $FF: renamed from: Ig int
  82.    public int field_30;
  83.    // $FF: renamed from: Mq short
  84.    protected short field_31;
  85.    // $FF: renamed from: JZ boolean
  86.    public boolean field_32 = false;
  87.    // $FF: renamed from: Ia int
  88.    public int field_33;
  89.    // $FF: renamed from: Fk boolean
  90.    public boolean field_34 = false;
  91.    // $FF: renamed from: ND int
  92.    protected int field_35;
  93.    // $FF: renamed from: KZ int
  94.    protected int field_36;
  95.    // $FF: renamed from: NT java.util.Vector
  96.    protected Vector field_37 = new Vector();
  97.    // $FF: renamed from: II c21
  98.    c21 field_38;
  99.    // $FF: renamed from: FK c17
  100.    c17 field_39;
  101.    // $FF: renamed from: NC c00
  102.    c00 field_40;
  103.    // $FF: renamed from: NH c00
  104.    c00 field_41;
  105.    // $FF: renamed from: Mw anFXApplet
  106.    anFXApplet field_42;
  107.  
  108.    // $FF: renamed from: Nk () boolean
  109.    public boolean method_0() {
  110.       return this.field_16;
  111.    }
  112.  
  113.    // $FF: renamed from: Km (java.lang.String) void
  114.    public void method_1(String var1) {
  115.       this.field_13 = -10;
  116.       this.field_37.addElement("Error " + var1);
  117.       this.field_42.repaint();
  118.    }
  119.  
  120.    // $FF: renamed from: HF (java.net.URL, java.lang.String) java.io.InputStream
  121.    public InputStream method_2(URL var1, String var2) throws IOException {
  122.       URL var3 = new URL(var1, var2);
  123.       URLConnection var4 = var3.openConnection();
  124.       var4.setUseCaches(true);
  125.       return new BufferedInputStream(var4.getInputStream());
  126.    }
  127.  
  128.    public void translate(int var1, int var2) {
  129.       this.field_35 += var1;
  130.       this.field_36 += var2;
  131.       this.field_7.translate(var1, var2);
  132.    }
  133.  
  134.    // $FF: renamed from: JM (anFXApplet) void
  135.    public void method_3(anFXApplet var1) {
  136.       this.field_42 = var1;
  137.    }
  138.  
  139.    // $FF: renamed from: Oj () void
  140.    public synchronized void method_4() {
  141.       --this.field_31;
  142.    }
  143.  
  144.    // $FF: renamed from: NA () void
  145.    public synchronized void method_5() {
  146.       ++this.field_31;
  147.    }
  148.  
  149.    // $FF: renamed from: Lx (java.applet.AudioClip) void
  150.    public void method_6(AudioClip var1) {
  151.    }
  152.  
  153.    // $FF: renamed from: Lq (java.awt.Image) int
  154.    public int method_7(Image var1) {
  155.       this.field_24.addImage(var1, this.field_25);
  156.       this.field_24.checkID(this.field_25, true);
  157.       short var10002 = this.field_25;
  158.       this.field_25 = (short)(var10002 + 1);
  159.       return var10002;
  160.    }
  161.  
  162.    // $FF: renamed from: Ot (java.lang.String, java.awt.Font) int
  163.    public int method_8(String var1, Font var2) {
  164.       FontMetrics var3 = this.field_42.getFontMetrics(var2);
  165.       return var3.stringWidth(var1);
  166.    }
  167.  
  168.    // $FF: renamed from: JY () void
  169.    public void method_9() {
  170.       this.field_20 = new String[10];
  171.       this.field_20[0] = "animation";
  172.       this.field_20[1] = "rich media";
  173.       this.field_20[2] = "smooth motion";
  174.       this.field_20[3] = "say goodbye to plugins!";
  175.       this.field_20[4] = "interactive";
  176.       this.field_20[5] = "point and click design studio";
  177.       this.field_20[6] = "try it today!";
  178.       this.field_20[7] = "this is an evaluation copy";
  179.       this.field_20[8] = "affordable";
  180.       this.field_20[9] = "unlimited frames";
  181.       short var1 = (short)((int)(Math.random() * (double)(this.field_42.LX - 20)));
  182.       c18 var2 = new c18(Color.red, new Rectangle(0, (short)(var1 + 19), this.field_42.LZ, 2));
  183.       c18 var3 = new c18(Color.black, new Rectangle(0, var1, this.field_42.LZ, 20));
  184.       Font var4 = new Font("Helvetica", 1, 18);
  185.       String var5 = this.field_20[0] + field_26;
  186.       int var6 = this.method_8(var5, var4);
  187.       c27 var7 = new c27(var5, var4, Color.white, (short)5, (short)(var1 + 1), (short)var6, (short)18);
  188.       this.field_39.Jc.JU(1, new c10(this.field_39.Jc, "http://www.stepaheadsoftware.com"));
  189.       this.field_39.Jc.Kw = 0;
  190.       this.field_39.Jc.Ki = var1;
  191.       this.field_39.Jc.LZ = this.field_42.LZ;
  192.       this.field_39.Jc.LX = 21;
  193.       this.field_39.Jc.Ja[0] = var2;
  194.       this.field_39.Jc.Ja[1] = var3;
  195.       this.field_39.Jc.Ja[2] = var7;
  196.       this.field_39.Jc.Ib();
  197.    }
  198.  
  199.    public boolean handleEvent(Event var1) {
  200.       if (this.field_38 == null) {
  201.          return false;
  202.       } else {
  203.          switch (var1.id) {
  204.             case 501:
  205.                this.field_22 = var1.x;
  206.                this.field_23 = var1.y;
  207.                this.field_41 = (c00)this.field_38.Hu(this.field_22, this.field_23, (byte)1);
  208.                if (this.field_41 != null) {
  209.                   this.field_41.Kk(true, (byte)1);
  210.                } else {
  211.                   this.field_41 = (c00)this.field_38.Hu(this.field_22, this.field_23, (byte)0);
  212.                }
  213.  
  214.                return true;
  215.             case 502:
  216.                this.field_22 = var1.x;
  217.                this.field_23 = var1.y;
  218.                if (this.field_41 != null) {
  219.                   this.field_41.Kk(true, (byte)2);
  220.                   if (this.field_41.equals(this.field_38.Hu(this.field_22, this.field_23, (byte)1)) || this.field_41.equals(this.field_38.Hu(this.field_22, this.field_23, (byte)0))) {
  221.                      this.field_41.Kk(true, (byte)0);
  222.                   }
  223.                }
  224.  
  225.                return true;
  226.             case 503:
  227.             case 506:
  228.                if (this.field_19 < 1) {
  229.                   this.field_22 = var1.x;
  230.                   this.field_23 = var1.y;
  231.                   ++this.field_19;
  232.                }
  233.  
  234.                return true;
  235.             case 504:
  236.             default:
  237.                return false;
  238.             case 505:
  239.                this.field_22 = Integer.MAX_VALUE;
  240.                this.field_23 = Integer.MAX_VALUE;
  241.                ++this.field_19;
  242.                return true;
  243.          }
  244.       }
  245.    }
  246.  
  247.    // $FF: renamed from: MY () void
  248.    public void method_10() {
  249.       if (this.field_19 >= 1) {
  250.          if (this.field_38 != null) {
  251.             c00 var1 = (c00)this.field_38.Hu(this.field_22, this.field_23, (byte)4);
  252.             if (var1 != this.field_40) {
  253.                if (this.field_40 != null) {
  254.                   this.field_40.Kk(true, (byte)5);
  255.                }
  256.  
  257.                if (var1 != null) {
  258.                   this.field_40 = var1;
  259.                   this.field_40.Kk(true, (byte)4);
  260.                } else {
  261.                   this.field_40 = null;
  262.                }
  263.             }
  264.  
  265.             if (var1 != this.field_2) {
  266.                this.field_2 = var1;
  267.                boolean var2 = false;
  268.                if (this.field_38.Hu(this.field_22, this.field_23, (byte)1) != null) {
  269.                   var2 = true;
  270.                }
  271.  
  272.                if (!var2 && this.field_38.Hu(this.field_22, this.field_23, (byte)2) != null) {
  273.                   var2 = true;
  274.                }
  275.  
  276.                if (!var2 && this.field_38.Hu(this.field_22, this.field_23, (byte)0) != null) {
  277.                   var2 = true;
  278.                }
  279.  
  280.                if (var2) {
  281.                   this.field_42.Jo.setCursor(12);
  282.                } else {
  283.                   this.field_42.Jo.setCursor(0);
  284.                }
  285.             }
  286.          }
  287.  
  288.          --this.field_19;
  289.       }
  290.    }
  291.  
  292.    // $FF: renamed from: Gq (int, int, boolean) void
  293.    public void method_11(int var1, int var2, boolean var3) {
  294.       this.field_40 = null;
  295.       this.field_41 = null;
  296.       int var4 = this.field_18;
  297.       if (this.field_38 != null) {
  298.          this.field_38.FT = false;
  299.          this.field_38.KL(false);
  300.       }
  301.  
  302.       c21 var5 = this.field_39.Gt(var1);
  303.       if (!var3) {
  304.          var5.HZ = var4;
  305.       }
  306.  
  307.       this.field_14 = var5.MW();
  308.       if (this.field_14 == Integer.MAX_VALUE) {
  309.          this.field_14 -= 65535;
  310.       }
  311.  
  312.       var2 = var5.GU(var2);
  313.       this.field_14 -= var2;
  314.       this.field_8 = var2;
  315.       this.field_30 = this.field_8 - this.field_9;
  316.       this.field_27 = System.currentTimeMillis();
  317.       this.field_32 = false;
  318.       this.field_38 = var5;
  319.       this.field_18 = var1;
  320.       var5.Ib();
  321.       this.field_42.HQ = var5.IP();
  322.       var5.Kk(true, (byte)6);
  323.       this.field_9 = var5.Ls();
  324.       this.field_38.FT = true;
  325.       this.field_28 = System.currentTimeMillis();
  326.       this.field_42.repaint();
  327.       this.field_34 = true;
  328.    }
  329.  
  330.    // $FF: renamed from: JW (int, int, int, int) boolean
  331.    public boolean method_12(int var1, int var2, int var3, int var4) {
  332.       String var5 = this.field_42.getDocumentBase().toString();
  333.       if (!var5.startsWith("http://")) {
  334.          return true;
  335.       } else {
  336.          var5 = "http://";
  337.          int var6 = 0;
  338.          int var7 = var1;
  339.          short[] var8 = new short[]{76, 43, 129, 89, 194, 39, 125};
  340.          int var10 = 0;
  341.  
  342.          int var9;
  343.          for(var9 = 0; var9 < var5.length() && var9 < var3; ++var9) {
  344.             char var11 = var5.charAt(var9);
  345.             if (var11 == '/') {
  346.                ++var10;
  347.             }
  348.  
  349.             var7 += var8[7 - var6 % 7 - 1] * var11;
  350.             var6 += var7;
  351.             if (var6 < 0) {
  352.                var6 *= -1;
  353.             }
  354.  
  355.             var7 *= var7;
  356.             ++var9;
  357.          }
  358.  
  359.          if (var7 < 0) {
  360.             var7 *= -1;
  361.          }
  362.  
  363.          if (var9 < var5.length() && var5.charAt(var9) == '/') {
  364.             ++var10;
  365.          }
  366.  
  367.          return var2 == var7 * var4;
  368.       }
  369.    }
  370.  
  371.    // $FF: renamed from: Nn (java.lang.String) void
  372.    public void method_13(String var1) {
  373.       InputStream var2 = null;
  374.       Object var3 = null;
  375.  
  376.       try {
  377.          var2 = this.method_2(this.field_42.getCodeBase(), var1);
  378.          c14 var11 = new c14(this, var2, -889274641);
  379.          if (var11.GM()) {
  380.             this.field_42.HM = var11.GJ();
  381.             this.field_10 = var11.GJ();
  382.             short var4 = var11.FS();
  383.             if (var11.IW < 50) {
  384.                this.field_13 = -3;
  385.             } else if (var11.IW > 68) {
  386.                this.field_13 = -4;
  387.             } else {
  388.                this.field_39 = (c17)var11.Lf();
  389.                this.field_33 = this.field_10;
  390.                this.field_42.repaint();
  391.                int var5 = var11.Jq;
  392.                int var6 = var11.GJ();
  393.                if (anFXApplet.Ik || this.field_42.HM != 519297 && this.field_42.HM != 519383) {
  394.                   if (!this.method_12(this.field_42.HM, var6, var4, var5)) {
  395.                      this.field_16 = true;
  396.                      this.field_39.Jc = new c11();
  397.                      this.field_39.Jc.Ja = new c00[3];
  398.                      this.method_9();
  399.                   } else {
  400.                      this.field_16 = false;
  401.                   }
  402.                } else {
  403.                   this.field_16 = true;
  404.                   this.field_42.Ny(this.field_42.HM, -999);
  405.                }
  406.  
  407.                this.field_39.Ir(this);
  408.                ((FilterInputStream)var11).close();
  409.                this.field_13 = 3;
  410.                System.out.println(var1 + " loaded");
  411.             }
  412.  
  413.             this.field_38 = null;
  414.             this.field_42.repaint(10L);
  415.          } else {
  416.             this.field_13 = -2;
  417.             this.field_16 = true;
  418.          }
  419.       } catch (IOException var8) {
  420.          System.out.println("io: " + ((Throwable)var8).toString());
  421.          this.field_13 = -1;
  422.       } catch (Exception var9) {
  423.          System.out.println("oth: " + ((Throwable)var9).toString());
  424.  
  425.          try {
  426.             if (var2 != null) {
  427.                var2.close();
  428.             }
  429.          } catch (IOException var7) {
  430.          }
  431.  
  432.          this.field_13 = -1;
  433.       }
  434.  
  435.       this.field_8 = 0;
  436.    }
  437.  
  438.    // $FF: renamed from: Hg (java.awt.Graphics) void
  439.    public void method_14(Graphics var1) {
  440.       if (this.field_13 == 0 && this.field_11 == 1) {
  441.          if (this.field_38 != null && this.field_38.FT) {
  442.             if (!this.field_32) {
  443.                var1.setColor(this.field_42.HQ);
  444.                var1.fillRect(0, 0, this.field_42.LZ, this.field_42.LX);
  445.             }
  446.  
  447.             this.field_38.JL(var1);
  448.          }
  449.  
  450.          this.field_11 = 0;
  451.       }
  452.  
  453.    }
  454.  
  455.    public void destroy() {
  456.       Thread var1 = this.field_3;
  457.       this.field_3 = null;
  458.       if (this.field_0) {
  459.          this.field_0 = false;
  460.          System.out.println("resume");
  461.          synchronized(this){}
  462.  
  463.          try {
  464.             this.notify();
  465.          } catch (Throwable var6) {
  466.             throw var6;
  467.          }
  468.       }
  469.  
  470.       System.out.println("ending...");
  471.  
  472.       while(var1.isAlive()) {
  473.          try {
  474.             Thread.sleep(100L);
  475.          } catch (Exception var5) {
  476.          }
  477.       }
  478.  
  479.       System.out.println("ended.");
  480.       if (this.field_7 != null) {
  481.          this.field_7.dispose();
  482.          this.field_7 = null;
  483.       }
  484.  
  485.       this.field_5 = null;
  486.    }
  487.  
  488.    public void init() {
  489.       field_26 = ": AnFX - stepaheadsoftware.com";
  490.       if (this.field_5 == null) {
  491.          this.field_5 = this.field_42.createImage(this.field_42.LZ, this.field_42.LX);
  492.          if (this.field_5 != null) {
  493.             if (this.field_7 != null) {
  494.                this.field_7.dispose();
  495.             }
  496.  
  497.             this.field_7 = this.field_5.getGraphics();
  498.          } else {
  499.             this.field_13 = -5;
  500.          }
  501.       }
  502.  
  503.       this.field_12 = this.field_42.getParameter("afxfile");
  504.       System.out.println("File: " + this.field_12);
  505.       this.field_24 = new MediaTracker(this.field_42);
  506.       this.field_38 = null;
  507.    }
  508.  
  509.    public synchronized void start() {
  510.       if (this.field_3 == null) {
  511.          this.field_3 = new Thread(this);
  512.          this.field_3.start();
  513.       } else {
  514.          if (this.field_0) {
  515.             this.field_0 = false;
  516.             this.notify();
  517.          }
  518.  
  519.          System.out.println("start");
  520.       }
  521.    }
  522.  
  523.    public void stop() {
  524.       if (this.field_3 == null) {
  525.          System.out.println("#34");
  526.          this.start();
  527.          this.stop();
  528.       } else {
  529.          this.field_1 = true;
  530.          System.out.println("stopping...");
  531.          if (this.field_38 != null) {
  532.             this.field_38.KL(false);
  533.          }
  534.  
  535.          while(!this.field_0) {
  536.             try {
  537.                Thread.sleep(100L);
  538.             } catch (Exception var2) {
  539.                System.out.println("stopping: " + ((Throwable)var2).getMessage());
  540.             }
  541.          }
  542.  
  543.          System.out.println("stopped.");
  544.       }
  545.    }
  546.  
  547.    public void run() {
  548.       Thread var1 = Thread.currentThread();
  549.       var1.setPriority(2);
  550.       boolean var2 = false;
  551.       this.field_18 = 0;
  552.       this.field_17 = 0;
  553.       int var3 = 0;
  554.       Toolkit var9 = Toolkit.getDefaultToolkit();
  555.       this.field_14 = this.field_15;
  556.  
  557.       try {
  558.          if (this.field_13 == 1) {
  559.             this.field_13 = 2;
  560.             this.method_13(this.field_12);
  561.             Thread.sleep(100L);
  562.          }
  563.  
  564.          if (this.field_13 == 3) {
  565.             this.field_39.HL();
  566.             if (this.field_13 >= 0) {
  567.                this.field_13 = 0;
  568.             }
  569.          }
  570.  
  571.          if (this.field_13 == 0) {
  572.             for(this.field_14 = this.field_15; var1 == this.field_3; this.field_14 -= this.field_9) {
  573.                if (this.field_1) {
  574.                   synchronized(this){}
  575.  
  576.                   try {
  577.                      this.field_1 = false;
  578.                      this.field_0 = true;
  579.  
  580.                      while(this.field_0 && var1 == this.field_3) {
  581.                         this.wait();
  582.                      }
  583.                   } catch (Throwable var15) {
  584.                      throw var15;
  585.                   }
  586.                }
  587.  
  588.                if (this.field_38 == null) {
  589.                   var3 = 0;
  590.                   this.field_18 = 0;
  591.                   if (this.field_39 != null) {
  592.                      this.method_11(0, 0, false);
  593.                   }
  594.                }
  595.  
  596.                if (this.field_14 <= 0) {
  597.                   boolean var10 = false;
  598.                   ++this.field_17;
  599.                   if (this.field_38.MA != null && !var2) {
  600.                      c23 var11 = new c23();
  601.                      this.field_38.MA.KC = var11;
  602.                      byte var12 = this.field_38.MA.Nq(Integer.MAX_VALUE);
  603.                      if (var12 == c22.Gf) {
  604.                         var2 = true;
  605.                      } else if (var12 == c22.Gv) {
  606.                         var10 = true;
  607.                      }
  608.                   }
  609.  
  610.                   if (!var2 && !var10) {
  611.                      if (this.field_38.NM() != 0 && this.field_17 >= this.field_38.NM()) {
  612.                         if (this.field_18 < this.field_39.LY.length - 1) {
  613.                            this.method_11(this.field_18 + 1, 0, false);
  614.                         } else {
  615.                            ++var3;
  616.                            if (this.field_39.NM() != 0 && var3 >= this.field_39.NM()) {
  617.                               this.field_14 = 0;
  618.                            } else {
  619.                               this.field_17 = 0;
  620.                               this.field_18 = 0;
  621.                               this.method_11(0, 0, false);
  622.                            }
  623.                         }
  624.                      } else {
  625.                         this.method_11(this.field_18, 0, true);
  626.                      }
  627.                   }
  628.                }
  629.  
  630.                if (this.field_38 != null) {
  631.                   this.field_38.Nq(this.field_8);
  632.                }
  633.  
  634.                if (this.field_34 || this.field_16) {
  635.                   this.field_11 = 1;
  636.                   this.field_42.repaint();
  637.                }
  638.  
  639.                this.field_34 = false;
  640.                this.method_10();
  641.                this.field_29 = System.currentTimeMillis();
  642.                int var6 = (int)(this.field_29 - this.field_28);
  643.                if (var6 < 10) {
  644.                   var6 = 2;
  645.                }
  646.  
  647.                int var7 = this.field_9 - var6;
  648.                if (var7 < 10) {
  649.                   var7 = 10;
  650.                }
  651.  
  652.                var9.sync();
  653.                if (Thread.currentThread() == this.field_3) {
  654.                   Thread.sleep((long)var7);
  655.                }
  656.  
  657.                for(int var8 = 0; this.field_11 != 0 && var1 == this.field_3 && !this.field_1; ++var8) {
  658.                   Thread.sleep(40L);
  659.                   if (var8 > 0 && var8 % 40 == 0) {
  660.                      System.out.println("LP " + var8);
  661.                      this.field_42.repaint();
  662.                   }
  663.                }
  664.  
  665.                long var4 = this.field_28;
  666.                this.field_28 = System.currentTimeMillis();
  667.                this.field_30 = this.field_8;
  668.                this.field_8 += this.field_9;
  669.             }
  670.  
  671.          }
  672.       } catch (InterruptedException var16) {
  673.          System.out.println("run: " + ((Throwable)var16).toString());
  674.       }
  675.    }
  676.  
  677.    public void paint(Graphics var1) {
  678.       if (this.field_13 == 0) {
  679.          if (this.field_5 != null) {
  680.             this.method_14(this.field_7);
  681.             var1.drawImage(this.field_5, 0, 0, this.field_42);
  682.          } else {
  683.             this.method_14(var1);
  684.          }
  685.       } else {
  686.          Dimension var2 = this.field_42.size();
  687.          this.field_7.setColor(this.field_42.HQ);
  688.          this.field_7.fillRect(0, 0, var2.width, var2.height);
  689.          Font var3 = this.field_7.getFont();
  690.          this.field_7.setFont(this.field_4);
  691.          this.field_7.setColor(this.field_42.Fw);
  692.          if (this.field_13 > 0) {
  693.             if (this.field_10 == 0) {
  694.                this.field_10 = 8000;
  695.             }
  696.  
  697.             Color var4 = this.field_42.Fw;
  698.             Color var5 = this.field_42.HQ;
  699.             int var6 = var4.getRed() - (int)((double)(var4.getRed() - var5.getRed()) * (double)0.75F);
  700.             int var7 = var4.getGreen() - (int)((double)(var4.getGreen() - var5.getGreen()) * (double)0.75F);
  701.             int var8 = var4.getBlue() - (int)((double)(var4.getBlue() - var5.getBlue()) * (double)0.75F);
  702.             Color var9 = new Color(var6, var7, var8);
  703.             int var10 = 20;
  704.             this.field_7.drawString("loading design...", 20, var10 - 5);
  705.             this.field_7.drawRect(20, var10, 130, 15);
  706.             this.field_7.setColor(var9);
  707.             this.field_7.drawRect(19, var10 - 1, 132, 17);
  708.             this.field_7.drawRect(21, var10 + 1, 128, 13);
  709.             this.field_7.fillRect(23, var10 + 3, 125 * this.field_33 / this.field_10, 10);
  710.             this.field_7.setColor(var4);
  711.             this.field_7.fillRect(24, var10 + 4, 123 * this.field_33 / this.field_10, 8);
  712.             var10 += 40;
  713.             this.field_7.drawString("loading media...", 20, var10 - 5);
  714.             this.field_7.drawRect(20, var10, 130, 15);
  715.             this.field_7.setColor(var9);
  716.             this.field_7.drawRect(19, var10 - 1, 132, 17);
  717.             this.field_7.drawRect(21, var10 + 1, 128, 13);
  718.             if (this.field_25 > 0) {
  719.                this.field_7.fillRect(23, var10 + 3, 125 * (this.field_25 - this.field_31) / this.field_25, 10);
  720.             }
  721.  
  722.             this.field_7.setColor(var4);
  723.             if (this.field_25 > 0) {
  724.                this.field_7.fillRect(24, var10 + 4, 123 * (this.field_25 - this.field_31) / this.field_25, 8);
  725.             }
  726.          } else if (this.field_13 < 0) {
  727.             this.field_7.drawString("Error# " + this.field_13 + " Help is loading...", 5, 15);
  728.             if (this.field_13 == -10) {
  729.                for(int var11 = 0; var11 < this.field_37.size(); ++var11) {
  730.                   this.field_7.drawString((String)this.field_37.elementAt(var11), 15, 30 * (var11 + 1));
  731.                }
  732.             }
  733.  
  734.             this.field_42.Ny(this.field_42.HM, this.field_13);
  735.          }
  736.  
  737.          this.field_7.setFont(var3);
  738.          var1.drawImage(this.field_5, 0, 0, this.field_42);
  739.       }
  740.    }
  741.  
  742.    // $FF: renamed from: Kk (boolean, byte) boolean
  743.    public boolean method_15(boolean var1, byte var2) {
  744.       boolean var3 = false;
  745.       if (this.field_38 != null) {
  746.          var3 = this.field_38.Kk(var1, var2);
  747.       }
  748.  
  749.       if (!var3 && this.field_39 != null) {
  750.          var3 = this.field_39.Kk(var1, var2);
  751.       }
  752.  
  753.       return var3;
  754.    }
  755. }
  756.